import request from '@/utils/request'

// 封装获取分类的请求
export const getCategoryAPI = () => {
  return request.get('/my/cate/list')
}

// 添加图书请求
export const addCategoryAPI = data => {
  return request.post('/my/cate/add', data)
}

// 删除文章分类
export const deleteCategoryAPI = id => request.delete('/my/cate/del', { params: { id } })

// 修改文章分类
export const updateCategoryAPI = data => request.put('/my/cate/info', data)
